#include <stdio.h>

int main()
{
    int row = 1;
    int column = 1;
    for (row=1; row<=9; row++)
    {
        for (column=1; column<=row; column++)
        if (row != column)
        {
            printf("%d X %d = %d\t", column, row, column*row);
        }
        else
        {
            printf("%d X %d = %d", column, row, column*row);
        }
        printf("\n");
    }
    return 0;
}